<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/21
 * Time: 10:37
 */
$email = "7308006@qq.com";
$mobile = "13365796985";
$s = 'elephant';
$res = fopen("a.txt","a");
//相对路径，相对当前PHP文件的路径
fwrite($res,$email."\n");
fwrite($res,$mobile."\n");
fclose($res);
include "b/1.2.php";
var_dump(__DIR__);

//C:\wamp\www\phpBase\21file\b 绝对路径

// linux /Home/Downloads   /Var/Downloads   /Root/Downloads
// windows C:\wamp\www\phpBase\21file\b

//相对路径是相同的，相对于当前文件

//php 环境下的，绝对路径。是跟据电脑磁盘定的。

//<a href="/phpBase/21file/a.css"